package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * 项目历史记录
 *
 * @author lilele
 */
@Data
@TableName(value = "admin_project_history")
public class AdminProjectHistoryEntity implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 信息
     */
    @NotEmpty(message = "信息不能为空")
    @TableField(value = "description")
    private String description;

    /**
     * 项目id
     */
    @NotEmpty(message = "项目id不能为空")
    @TableField(value = "projectId")
    private String projectId;

    @NotEmpty(message = "创建人id不能为空")
    @TableField(value = "createdId")
    private String createdId;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;
}
